package observer.impl;

import event.MessageEvent;
import observer.ComponentListener;

/**
 * 扬声器组件
 * @author 粥灰灰
 * 2025/9/30 10:39
 */
public class SpeakerListener implements ComponentListener {
    @Override
    public void handle(MessageEvent event) {
        System.out.println("扬声器播放：" + event.getMessage());
    }
}
